<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改个体工商户批量导入')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-merchantImport-edit" th:object="${ecardMerchantImport}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名
                ：</label>
            <div class="col-sm-8">
                <input name="name" th:field="*{name}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">手机号
                ：</label>
            <div class="col-sm-8">
                <input name="phoneNumber" th:field="*{phoneNumber}" class="form-control"
                       type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">身份证号
                ：</label>
            <div class="col-sm-8">
                <input name="cardnum" th:field="*{cardnum}" class="form-control"
                       type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">门面名称
                ：</label>
            <div class="col-sm-8">
                <input name="handName" th:field="*{handName}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">客户地址
                ：</label>
            <div class="col-sm-8">
                <input name="address" th:field="*{address}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">营业执照名称
                ：</label>
            <div class="col-sm-8">
                <input name="licenseName" th:field="*{licenseName}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">是否历史客户</label>
            <div class="col-sm-8">
                <select name="whetherHisCustomer" class="selectpicker form-control m-b"
                        th:with="type=${@dict.getType('common_yes_no')}" required>
                    <option value="">请选择</option>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                            th:value="${dict.dictValue}" th:field="*{whetherHisCustomer}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">管户人工号
                ：</label>
            <div class="col-sm-8">
                <input name="userCode" th:field="*{userCode}" class="form-control"
                       type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">管户人
                ：</label>
            <div class="col-sm-8">
                <input name="userName" th:field="*{userName}" class="form-control"
                       type="text" readonly>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "ecard/imp/merchantImport";
    $("#form-merchantImport-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-merchantImport-edit').serialize());
        }
    }
</script>
</body>
</html>